﻿namespace PowerSong.UserInterface
    {
    using System.Diagnostics;
    using System.Reflection;
    using System.Windows;

    /// <summary>
    /// Interaction logic for AboutWindow.xaml
    /// </summary>
    public partial class AboutWindow : Window
        {

        public AboutWindow()
            {
            
            InitializeComponent();

            // What version are we running?
            var version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            VersionTextBlock.Text = "Version " + version;

            }

        private void CloseButton_Click(object sender, RoutedEventArgs e)
            {
            this.DialogResult = true;
            }

        private void VisitWebsiteButton_Click(object sender, RoutedEventArgs e)
            {
            Process.Start(Infrastructure.WebsiteUrl);
            }

        private void SendFeedbackButton_Click(object sender, RoutedEventArgs e)
            {
            new FeedbackWindow().ShowDialog();
            }

        }

    }
